package net.sunofbeaches.dao;

import net.sunofbeaches.pojo.Label;
import net.sunofbeaches.pojo.RefreshToken;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface RefreshTokenDao extends JpaRepository<RefreshToken,String>, JpaSpecificationExecutor<RefreshToken> {
    RefreshToken findOneByTokenKey(String tokenKey);

    int deleteAllByUserId(String UserId);

    int deleteAllByTokenKey(String tokenKey);
}
